<div class="page-products stock-product">
	
    <div class="product-header clearfix">
		<i class="icon icon-back" ng-click="back()"></i>
        我的借货单
        <i class="stock-icon icon-add" ng-click="jump('usercenter/manager/addborrow')"></i>
	</div>

	<div class="order-header manager-tab clearfix">
		<a href="javascript:void(0);" ng-click="switchTab(1)" class="order-tab-title" ng-class="{'selected':selection.tab == 1}">待审核</a>
		<a href="javascript:void(0);" ng-click="switchTab(2)" class="order-tab-title" ng-class="{'selected':selection.tab == 2}">待签收</a>
        <a href="javascript:void(0);" ng-click="switchTab(3)" class="order-tab-title" ng-class="{'selected':selection.tab == 3}">待还货</a>
		<a href="javascript:void(0);" ng-click="switchTab(4)" class="order-tab-title" ng-class="{'selected':selection.tab == 4}">我发起的</a>
        <a href="javascript:void(0);" ng-click="switchTab('search')" class="order-tab-title" ng-class="{'selected':selection.tab == 'search'}">筛选</a>
	</div>
   
    <!--待审核--> 
    <div class="orderlist-wrap" style="padding-top:50px;" ng-if="selection.tab == 1">	
    	
		<div class="monitor-win" ng-repeat="vl in verifyloans">
			<p>
				<span style="position:absolute;right:6%;">
					<a style="margin:2px 2px;" class="receive-btn" href="javascript:void(0);" ng-click="showMemo(1);">通过</a>
					<a style="margin:2px 2px;" class="destory-btn" href="javascript:void(0);" ng-click="showMemo(0);">拒绝</a>
           		</span>
			</p>
            <table class="tab_table" style="clear:both;" ng-click="jump('usercenter/manager/borrowdetail')">
				<tr>
					<td class="t_title">借单号：</td>
					<td colspan="3">{{vl.loan_order_id}}</td>
				</tr>
				<tr>
					<td class="t_title" style="vertical-align:top;">发货仓库：</td>
					<td colspan="3">{{vl.warehouse}}</td>
                </tr>
                <tr>
                    <td class="t_title" style="vertical-align:top;">物流中心：</td>
					<td colspan="3">{{vl.logcenter}}</td>
				</tr>
                <tr>
					<td class="t_title">联系人：</td>
					<td>{{vl.shipping_name}}</td>
                    <td class="t_title">电话：</td>
					<td>{{vl.shipping_tel}}</td>
				</tr>
                <tr>
					<td class="t_title" style="vertical-align:top;">地址：</td>
					<td colspan="3">{{vl.shipping_address}} </td>
				</tr>			
				<tr>
					<td class="t_title">操作人：</td>
					<td>{{vl.user_name}}</td>
					<td class="t_title">状态：</td>
					<td>{{vl.status_name}}</td>
				</tr>
				<tr>
					<td class="t_title" style="vertical-align:top;">创建时间：</td>
					<td>{{vl.date_added}}</td>
                    <td class="t_title" style="vertical-align:top;">修改时间：</td>
					<td>{{vl.date_modified}}</td>
				</tr> 
			</table>
    	</div>
        
        <div class="no-orders" ng-if="verifyloans.length < 1">没有查询到任何单据...</div>
		<div class="loading" id="LoadingPlace"></div>
    
    </div>
	<!--待审核-->
    
    <!--待签收-->    
    <div class="orderlist-wrap" style="padding-top:50px;" ng-if="selection.tab == 2">	
    	
		<div class="monitor-win" ng-repeat="sl in signloans">
            <table class="tab_table" style="clear:both;" ng-click="jump('usercenter/manager/borrowdetail')">
				<tr>
					<td class="t_title">借单号：</td>
					<td colspan="3">{{sl.loan_order_id}}</td>
				</tr>
				<tr>
					<td class="t_title" style="vertical-align:top;">发货仓库：</td>
					<td colspan="3">{{sl.warehouse}}</td>
                </tr>
                <tr>
                    <td class="t_title" style="vertical-align:top;">物流中心：</td>
					<td colspan="3">{{sl.logcenter}}</td>
				</tr>
                <tr>
					<td class="t_title">联系人：</td>
					<td>{{sl.shipping_name}}</td>
                    <td class="t_title">电话：</td>
					<td>{{sl.shipping_tel}}</td>
				</tr>
                <tr>
					<td class="t_title" style="vertical-align:top;">地址：</td>
					<td colspan="3">{{sl.shipping_address}} </td>
				</tr>			
				<tr>
					<td class="t_title">操作人：</td>
					<td>{{sl.user_name}}</td>
					<td class="t_title">状态：</td>
					<td>{{sl.status_name}}</td>
				</tr>
				<tr>
					<td class="t_title" style="vertical-align:top;">创建时间：</td>
					<td>{{sl.date_added}}</td>
                    <td class="t_title" style="vertical-align:top;">修改时间：</td>
					<td>{{sl.date_modified}}</td>
				</tr> 
			</table>
    	</div>
        
        <div class="no-orders" ng-if="signloans.length < 1">没有查询到任何单据...</div>
		<div class="loading" id="LoadingPlace"></div>
    
    </div>
    <!--待签收-->
    
    <!--待还货-->
    <div class="orderlist-wrap" style="padding-top:50px;" ng-if="selection.tab == 3">	
    	
		<div class="monitor-win" ng-repeat="rl in returnloans">
            <table class="tab_table" style="clear:both;" ng-click="jump('usercenter/manager/borrowdetail')">
				<tr>
					<td class="t_title">借单号：</td>
					<td colspan="3">{{rl.loan_order_id}}</td>
				</tr>
				<tr>
					<td class="t_title" style="vertical-align:top;">发货仓库：</td>
					<td colspan="3">{{rl.warehouse}}</td>
                </tr>
                <tr>
                    <td class="t_title" style="vertical-align:top;">物流中心：</td>
					<td colspan="3">{{rl.logcenter}}</td>
				</tr>
                <tr>
					<td class="t_title">联系人：</td>
					<td>{{rl.shipping_name}}</td>
                    <td class="t_title">电话：</td>
					<td>{{rl.shipping_tel}}</td>
				</tr>
                <tr>
					<td class="t_title" style="vertical-align:top;">地址：</td>
					<td colspan="3">{{rl.shipping_address}} </td>
				</tr>			
				<tr>
					<td class="t_title">操作人：</td>
					<td>{{rl.user_name}}</td>
					<td class="t_title">状态：</td>
					<td>{{rl.status_name}}</td>
				</tr>
				<tr>
					<td class="t_title" style="vertical-align:top;">创建时间：</td>
					<td>{{rl.date_added}}</td>
                    <td class="t_title" style="vertical-align:top;">修改时间：</td>
					<td>{{rl.date_modified}}</td>
				</tr>
			</table>
    	</div>
        
        <div class="no-orders" ng-if="returnloans.length < 1">没有查询到任何单据...</div>
		<div class="loading" id="LoadingPlace"></div>
    
    </div>
    <!--待还货-->
    
    <!--我发起的-->
    <div class="orderlist-wrap" style="padding-top:50px;" ng-if="selection.tab == 4">	
    	
		<div class="monitor-win" ng-repeat="ml in myloans">
        	<p>
				<span style="position:absolute;right:6%;">
					<a style="margin:2px 2px;" class="recharge-btn" href="javascript:void(0);" ng-click="jump('usercenter/manager/addborrow')">复制</a>
           		</span>
			</p>
            <table class="tab_table" style="clear:both;" ng-click="jump('usercenter/manager/borrowdetail')">
				<tr>
					<td class="t_title">借单号：</td>
					<td colspan="3">{{ml.loan_order_id}}</td>
				</tr>
				<tr>
					<td class="t_title" style="vertical-align:top;">发货仓库：</td>
					<td colspan="3">{{ml.warehouse}}</td>
                </tr>
                <tr>
                    <td class="t_title" style="vertical-align:top;">物流中心：</td>
					<td colspan="3">{{ml.logcenter}}</td>
				</tr>
                <tr>
					<td class="t_title">联系人：</td>
					<td>{{ml.shipping_name}}</td>
                    <td class="t_title">电话：</td>
					<td>{{ml.shipping_tel}}</td>
				</tr>
                <tr>
					<td class="t_title" style="vertical-align:top;">地址：</td>
					<td colspan="3">{{ml.shipping_address}} </td>
				</tr>			
				<tr>
					<td class="t_title">操作人：</td>
					<td>{{ml.user_name}}</td>
					<td class="t_title">状态：</td>
					<td>{{ml.status_name}}</td>
				</tr>
				<tr>
					<td class="t_title" style="vertical-align:top;">创建时间：</td>
					<td>{{ml.date_added}}</td>
                    <td class="t_title" style="vertical-align:top;">修改时间：</td>
					<td>{{ml.date_modified}}</td>
				</tr> 
			</table>
    	</div>
        
        <div class="no-orders" ng-if="myloans.length < 1">没有查询到任何单据...</div>
		<div class="loading" id="LoadingPlace"></div>
    
    </div>
    <!--我发起的-->
    
    <!--筛选-->
    <div class="orderlist-wrap" style="padding-top:50px;" ng-if="selection.tab == 'search'">
        	
    </div>
    <!--筛选-->
    
    <!--筛选弹出-->
	<div class="filter-panel" ng-class="{'show':showSearchFlag}">
		<div class="top-bar clearfix">
			<span class="text">筛选</span>
			<a class="btn-filter search-stock-btn" href="javascript:void(0);" ng-click="">确定</a>
		</div>
        <div style="padding:20px;">  
            <table class="tab_table search_table" style="clear:both;">
            	<tr>
                    <td class="t_title_long">借货单单号：</td>
                    <td>
                        <input type="text" value="" />
                    </td>
                </tr>
                <tr>
                    <td class="t_title_long">商品编码：</td>
                    <td>
                        <input type="text" value="" />
                    </td>
                </tr>
                <tr>
                    <td class="t_title_long">仓库名：</td>
                    <td>
                        <select>
                        	<option>永康总仓</option>
                            <option>无锡总仓</option>
                            <option>全部</option>
                    	</select>
                    </td>
                </tr>
                <tr>
                    <td class="t_title_long">单据状态：</td>
                    <td>
                        <select>
                        	<option>初始</option>
                            <option>审核中</option>
                            <option>审核拒绝</option>
                            <option>审核通过</option>
                            <option>已发货</option>
                            <option>已签收</option>
                            <option>已还货</option>
                            <option>关闭</option>
                            <option>全部</option>
                    	</select>
                    </td>
                </tr>
                <tr>
                    <td class="t_title_long">开始时间：</td>
                    <td>
                        <input class="date" type="date" value="" />
                    </td>
                </tr>
                <tr>
                    <td class="t_title_long">结束时间：</td>
                    <td>
                        <input class="date" type="date" value="" />
                    </td>
                </tr>
            </table>
    	</div>        
	</div>
    <div class="cover" ng-if="showSearchFlag" ng-click="closeSearch()"></div>
    <!--筛选弹出-->
	
</div>

<!--弹出审核-->
<div class="mubu confirm_div memo_div">
	<div class="pc_xy_content">
		<p class="tal f14 xy_pc_title fwb">审核<span class="fr" ng-click="hideConfirm()">×</span></p>
        <div>
        	<table class="tab_table search_table" style="clear:both;">
            	<tr>
                    <td class="t_title">备注：</td>
                    <td>
                        <textarea></textarea>
                    </td>
                </tr>
        	</table>
        </div>
        <div class="pc_xy_btn" ng-click="">{{dialogbtn}}</div>
	</div>
</div>
<!--弹出审核-->